package com.adpython.domain;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;

/**
 * @author wenhua.yang
 * @date 2009-7-9
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Users {
	@PrimaryKey
	@Unique
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Unique
	@Persistent
	private String mail;

	@Persistent
	private String name;

	@Persistent
	private String password;

	@Persistent
	private boolean sex;

	@Persistent
	private String birthday;

	@Persistent
	private String phone;

	@Persistent
	private String qq;

	@Persistent
	private String msn;

	@Persistent
	private String city;

	@Persistent
	private String address;

	@Persistent
	private Date createTime;

	@Persistent
	private boolean isActive;

	public Users(String mail, String name, String password) {
		this.mail = mail;
		this.name = name;
		this.password = password;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setIsActive(boolean isActive) {
		this.isActive = isActive;
	}

	public Long getId() {
		return this.id;
	}

	public String getMail() {
		return this.mail;
	}

	public String getName() {
		return this.name;
	}

	public String getPassword() {
		return this.password;
	}

	public boolean getSex() {
		return this.sex;
	}

	public String getBirthday() {
		return this.birthday;
	}

	public String getPhone() {
		return this.phone;
	}

	public String getQq() {
		return this.qq;
	}

	public String getMsn() {
		return this.msn;
	}

	public String getCity() {
		return this.city;
	}

	public String getAddress() {
		return this.address;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public boolean getIsActive() {
		return this.isActive;
	}
}
